package com.stylefeng.guns.common.constant;

import java.util.HashMap;
import java.util.Map;

public class Enum{
	public enum BuyerStatusEnum {
		//0:待接受,1:已接受,2:已完成
		DJS(0,"待接受"),YJS(1,"已接受"),YWC(2,"已完成");
		
		BuyerStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (BuyerStatusEnum en : BuyerStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}

	public enum BuyerAuditStatusEnum {
		//审核状态(0:待审核1审核通过2审核不通过)
		DSH(0,"待审核"),SHTG(1,"审核通过"),SHBTG(2,"审核不通过");
		
		BuyerAuditStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (BuyerAuditStatusEnum en : BuyerAuditStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum SellerStatusEnum {
		//0:待接受,1:已接受,2:已完成
		DJS(0,"待接受"),YJS(1,"已接受"),YWC(2,"已完成");
		
		SellerStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (SellerStatusEnum en : SellerStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}

	public enum SellerAuditStatusEnum {
		//审核状态(0:待审核1审核通过2审核不通过)
		DSH(0,"待审核"),SHTG(1,"审核通过"),SHBTG(2,"审核不通过");
		
		SellerAuditStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (SellerAuditStatusEnum en : SellerAuditStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum UserInfoTypeEnum {
		//用户类型（1：广告主 2：流量主）
		GGZ(1,"广告主"),LLZ(2,"流量主");
		
		UserInfoTypeEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (UserInfoTypeEnum en : UserInfoTypeEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}

	public enum UserInfoLevelEnum {
		//用户等级(0：普通用户1：待定2：待定
		PTYH(0,"普通用户"),DD1(1,"待定"),DD2(2,"待定");
		
		UserInfoLevelEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (UserInfoLevelEnum en : UserInfoLevelEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	

	public enum UserInfoStatusEnum {
		//状态(0:可用1不可用)
		KY(0,"可用"),BKY(1,"不可用");
		
		UserInfoStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (UserInfoStatusEnum en : UserInfoStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum ActivityStatusEnum {
		//状态 ：1-有效，0-无效
		INVAILD(0,"无效"),VAILD(1,"有效");
		
		ActivityStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (ActivityStatusEnum en : ActivityStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum UserLotteryStatusEnum {
		// 状态 ：0-未中奖，1-中奖
		LOSELOTTERY(0,"未中奖"),WINLOTTERY(1,"中奖");
		
		UserLotteryStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (UserLotteryStatusEnum en : UserLotteryStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	

	public enum AwardsTypeEnum {
		//奖项类型 0:奖金，1:金币，2奖品
		JIANGJIN(0,"奖金"),JINBIN(1,"金币"),JIANGPING(2,"奖品");
		
		AwardsTypeEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (AwardsTypeEnum en : AwardsTypeEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum AwardsStatusEnum {
		//状态 ：0-有效，1-无效
		VAILD(0,"有效"),INVAILD(1,"无效");
		
		AwardsStatusEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (AwardsStatusEnum en : AwardsStatusEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
	
	public enum ActivityTypeEnum {
		//活动类型 1-幸运大抽奖 
		XYDCJ(1,"幸运大抽奖");
		
		ActivityTypeEnum(Integer value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		private Integer value;
		private String desc;

		public Integer getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}

		private static Map<Integer, String> enumMap = new HashMap<Integer, String>();

		static {
			for (ActivityTypeEnum en : ActivityTypeEnum.values()) {
				enumMap.put(en.getValue(), en.getDesc());
			}
		}

		public static String getDesc(Integer value) {
			return enumMap.get(value);
		}

		public static Map<Integer, String> getEnumMap() {
			return enumMap;
		}
	}
}

